package main

import (
	"time"
	"fmt"
)

type Car struct {
	name string
	age int
}
//匿名字段
type Train struct {
	Car
	start time.Time
	int
}

func main() {
	var t Train
	t.name = "train"
	t.int = 18
	t.age=4
	t.start = time.Now()
	fmt.Println(t)
}
